package com.hxkj.dao.impl;

import com.hxkj.dao.MqInfoDao;
import com.hxkj.mapper.MqInfoMapper;
import com.hxkj.domain.po.MqInfo;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;


/**
* 数据操作实现
*
* @author: chenwei
* @version: 1.0
* @datetime: 2018-09-06 14:11:52
*
*/
@Service("mqInfoDao")
public class MqInfoDaoImpl implements MqInfoDao {

    @Resource
    private MqInfoMapper mqInfoMapper;

    @Override
    public MqInfo get(Long mqId) {
        return mqInfoMapper.selectByPrimaryKey(mqId);
    }

    @Override
    public List<MqInfo> get(MqInfo mqInfo) {
        return mqInfoMapper.select(mqInfo);
    }

    @Override
    public int delete(Long mqId) {
        return mqInfoMapper.deleteByPrimaryKey(mqId);
    }

    @Override
    public int delete(MqInfo mqInfo) {
        return mqInfoMapper.delete(mqInfo);
    }

    @Override
    public int save(MqInfo mqInfo) {
        return mqInfoMapper.insert(mqInfo);
    }

    @Override
    public int update(MqInfo mqInfo) {
        return mqInfoMapper.update(mqInfo);
    }


    @Override
    public List<MqInfo> getMqInfoList(MqInfo mqInfo) {
        return mqInfoMapper.getMqInfoList(mqInfo);
    }
}
